public void AddEntity(PvSystem model) { _repository.Add(model); _repository.SaveAll(); }
public IActionResult Post([FromBody] PvSystem model) { _repositoryBLL.AddEntity(model); return(NoContent()); }
public void AddEntity(PvSystem model) { _repository.Add(model); _repository.SaveAll(); }
public IActionResult Post([FromBody] PvSystem model) { _repositoryBLL.AddEntity(model); return(NoContent()); }