Mantenimiento de Miembros

This commit is contained in:
2026-01-13 21:02:34 -06:00
parent 06470a9173
commit 75aac3b273
50 changed files with 1440 additions and 1145 deletions

View File

@@ -0,0 +1,37 @@
using Microsoft.AspNetCore.Http;
using Rs_system.Models.ViewModels;
namespace Rs_system.Services;
public interface IMiembroService
{
/// <summary>
/// Gets all active members with their work group information
/// </summary>
Task<IEnumerable<MiembroViewModel>> GetAllAsync();
/// <summary>
/// Gets a member by ID
/// </summary>
Task<MiembroViewModel?> GetByIdAsync(long id);
/// <summary>
/// Creates a new member
/// </summary>
Task<bool> CreateAsync(MiembroViewModel viewModel, string createdBy, IFormFile? fotoFile = null);
/// <summary>
/// Updates an existing member
/// </summary>
Task<bool> UpdateAsync(long id, MiembroViewModel viewModel, IFormFile? fotoFile = null);
/// <summary>
/// Soft deletes a member
/// </summary>
Task<bool> DeleteAsync(long id);
/// <summary>
/// Gets all active work groups for dropdown
/// </summary>
Task<IEnumerable<(long Id, string Nombre)>> GetGruposTrabajoAsync();
}